//用户登录
export interface UserLoginType {
  loginName: string
  password: string
}

//组织类型
export interface OrgTypeType {
  id: string
  typeName: string
  typeIcon: string
  note: string
  otStatus: boolean
  mainType: boolean
  orgTypeSort: number
  addTime: Date
  editTime: Date
}

//组织结构类型
export interface OrgType {
  id: string
  parentId: string
  orgIndex?: number
  orgCode?: string
  orgName: string
  orgLocation?: string
  orgShortName?: string
  orgAreaName?: string
  orgType?: OrgTypeType
  areaCode?: string
  areaName?: string
  orgLevel?: string
  note?: number
}

//登录账号信息
export interface UserAccountType {
  id: string
  userId: string
  loginAccount: string
  loginType: string
  loginState: number
  addTime: string
  editTime: string
}

export interface UserTypeType {
  id: string
  typeName: string
  home: string
  note: string
  sortIndex: number
  utStatus: boolean
  addTime: Date
  editTime: Date
}

//用户信息
export interface UserInfoType {
  id: string
  userCode: string
  userName: string
  nickName: string
  idCard: string
  mobile: string
  phone: string
  officePhone: string
  eMail: string
  userState: number
  addTime: Date
  editTime: Date
  fileId: string
  org: OrgType
  queryOrg: OrgType
  account: UserAccountType
  userType: UserTypeType
}

export interface LoginUserType {
  userInfo: UserInfoType
  tokenKey: string
  token: string
  loginIp: string
  loginIps: string
  loginTime: Date
  lastTime: Date
}
